home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
awe2-0_1.lha
/
awe2-0.1
/
Src
/
RCS
/
Statistic.h,v
< prev
next >
Wrap
Text File
|
1989-05-04
|
2KB
|
173 lines
head 3.3;
branch ;
access ;
symbols ;
locks grunwald:3.3; strict;
comment @ * @;
3.3
date 89.05.04.14.38.08; author grunwald; state Exp;
branches ;
next 3.2;
3.2
date 89.02.20.15.37.46; author grunwald; state Exp;
branches ;
next 3.1;
3.1
date 88.12.20.13.50.22; author grunwald; state Exp;
branches ;
next 1.2;
1.2
date 88.10.30.13.06.12; author grunwald; state Exp;
branches ;
next 1.1;
1.1
date 88.09.18.16.42.15; author grunwald; state Exp;
branches ;
next ;
desc
@@
3.3
log
@Before switching to Gnu lib version
@
text
@// This may look like C code, but it is really -*- C++ -*-
//
// Copyright (C) 1988 University of Illinois, Urbana, Illinois
//
// written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
//
#ifndef STATISTICH
#define STATISTICH
#pragma once
#include <Awesime.h>
class Statistic : public Awesime {
protected:
int n;
double x;
double x2;
double minValue, maxValue;
double tval(double, int);
public :
inline Statistic(){ reset();}
virtual void reset();
virtual void operator+=(double);
virtual int samples();
virtual double mean();
virtual double stdDev();
virtual double var();
virtual double min();
virtual double max();
virtual double sum();
virtual double confidence(int p_percentage);
virtual double confidence(double p_value);
virtual void classPrintOn(ostream&);
};
#endif STATISTICH
@
3.2
log
@Start using Gnu library heaps for schedulers
@
text
@d9 1
d11 1
a11 1
#include "Awesime.h"
d14 1
d20 1
a20 1
public :
d22 2
d28 9
a36 8
int samples();
double mean();
double stdDev();
double var();
double min();
double max();
double sum();
double confidence(int);
a37 1
// virtual const char *classIsA();
a39 24
inline int
Statistic::samples()
{
return(n);
}
inline double
Statistic::min()
{
return(minValue);
}
inline double
Statistic::max()
{
return(maxValue);
}
inline double
Statistic::sum()
{
return(x);
}
@
3.1
log
@Steay version
@
text
@@
1.2
log
@*** empty log message ***
@
text
@d24 1
a24 1
inline int samples() {return(n);}
d28 3
a30 2
inline double min() {return(minValue);}
inline double max() {return(maxValue);}
d36 24
@
1.1
log
@Initial revision
@
text
@d1 6
@